package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单子项对象 order_item
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
public class OrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long masterOrderId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private Float price;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String img;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long number;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMasterOrderId(Long masterOrderId) 
    {
        this.masterOrderId = masterOrderId;
    }

    public Long getMasterOrderId() 
    {
        return masterOrderId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPrice(Float price)
    {
        this.price = price;
    }

    public Float getPrice()
    {
        return price;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("masterOrderId", getMasterOrderId())
            .append("name", getName())
            .append("price", getPrice())
            .append("img", getImg())
            .append("number", getNumber())
            .toString();
    }
}
